﻿using SqlSugar;
using System.ComponentModel.DataAnnotations;

namespace B.S.SmartStorPro.Domain
{
    /// <summary>
    /// 用户表
    /// </summary>
    public class Users
    {
        /// <summary>
        /// 用户Id主键
        /// </summary>

        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int UserID { get; set; }
        /// <summary>
        /// 用户名
        /// </summary>
        /// 
        [MaxLength(50)]
        public string UserName { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        /// 
        [MaxLength(255)]
        public string UserPwd { get; set; }
        /// <summary>
        /// 工号
        /// </summary>
        /// 
        [MaxLength(50)]
        public string EmployeeId { get; set; }
        /// <summary>
        /// 姓名
        /// </summary>
        /// 
        [MaxLength(50)]
        public string Name { get; set; }
        /// <summary>
        /// 手机
        /// </summary>
        /// 
        [MaxLength(50)]
        public string Phone { get; set; }
        /// <summary>
        /// 邮箱
        /// </summary>
        /// 
        [MaxLength(255)]
        public string Email { get; set; }
        /// <summary>
        /// 部门ID -外键
        /// </summary>
        public int DepartmentId { get; set; }
        /// <summary>
        /// 角色ID-外键
        /// </summary>
        public int RoleId { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        /// 
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 登录次数
        /// </summary>
        public int LoginCount  { get; set; }
      
        /// <summary>
        /// 是否删除(1-删除 0正常)
        /// </summary>
        public bool IsDelete { get; set; }


    }
}
